﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="rest_school.aspx.cs" Inherits="rest_school" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>休学处理</title>
    <style type="text/css">
        .auto-style1 {
            font-size: large;
        }
        .auto-style2 {
            text-align: center;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <p>
            <div class="auto-style2">
                <span class="auto-style1"><strong>
                <br />
                <br />
            请选择专业：</strong></span><strong><asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="Smajor" DataValueField="Smajor" CssClass="auto-style1">
            </asp:DropDownList>
                </strong>
            </div>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:XSXKConnectionString4 %>" SelectCommand="SELECT DISTINCT [Smajor] FROM [Student]"></asp:SqlDataSource>
            <center>
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="Sno" DataSourceID="SqlDataSource2" ForeColor="#333333" GridLines="None">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:BoundField DataField="Sno" HeaderText="学号" ReadOnly="True" SortExpression="Sno" />
                    <asp:BoundField DataField="Sname" HeaderText="姓名" SortExpression="Sname" />
                    <asp:BoundField DataField="Sclass" HeaderText="班级" SortExpression="Sclass" />
                    <asp:BoundField DataField="Ssex" HeaderText="性别" SortExpression="Ssex" />
                    <asp:BoundField DataField="Smajor" HeaderText="专业" SortExpression="Smajor" />
                    <asp:BoundField DataField="Syear" HeaderText="年龄" SortExpression="Syear" />
                    <asp:BoundField DataField="flag_rest" HeaderText="是否休学" SortExpression="flag_rest" />
                    <asp:HyperLinkField DataNavigateUrlFields="Sno,Sname" DataNavigateUrlFormatString="rest_school_detail.aspx?Sno={0}&amp;Sname={1}" Text="休学处理" />
                </Columns>
                <EditRowStyle BackColor="#7C6F57" />
                <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#E3EAEB" />
                <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F8FAFA" />
                <SortedAscendingHeaderStyle BackColor="#246B61" />
                <SortedDescendingCellStyle BackColor="#D4DFE1" />
                <SortedDescendingHeaderStyle BackColor="#15524A" />
            </asp:GridView>
                </center>
            <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:XSXKConnectionString4 %>" SelectCommand="SELECT [Sno], [Sname], [Sclass], [Ssex], [Smajor], [Syear], [flag_rest] FROM [Student]"></asp:SqlDataSource>
        </p>
        <p>
            <br />
        </p>
    <div>
    
    </div>
    </form>
</body>
</html>
